<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>{$Think.config.sitename}-汽车频道</title>
<link href="__PUBLIC__/css/client_common.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/css/auto.css" rel="stylesheet" type="text/css" />

<script src="__PUBLIC__/js/jquery.js" type="text/javascript"></script>
</head>
<body>
<include file="Public:head" />

<div id="content">
	
	
<div class="alphabet">
	<span id="begin_width" class="begin_width">A</span>
	<volist name="letters" id="letter">
		<if condition="$letter eq 1"><span class="on"><a href="#{$key}" onclick="change('{$key}')">{$key}</a></span><else/><span class="off">{$key}</span></if>	
	</volist>
</div>	
<div class="car_brand">	
<!-- 
<volist name="brands" id="vo">
<div class="letter">{$vo.letter}</div>

<table cellspacing='1'>
<volist name="vo['list']" id="list">
	<tr>
		<th>
			<img src="/{$list.par.logo}" width="60" height="60"/>
			<div class="p_name">{$list.par.name}</div>
		</th>
		<td>
			<volist name="list['sub']" id="sub">
				<div class="sub_name">{$sub.brand.name}</div>
				<div class="car_models">
				
				</div>
				<div class="divide_line"></div>
			</volist>
		</td>
	</tr>
</volist>
</table>

</volist>
 -->
<php>foreach ($brands as $brand) {</php>
	<div class="letter" id="{$brand.letter}">{$brand.letter}</div>
	<table cellspacing='1'>
		<php>foreach ($brand['list'] as $list) {</php>
			<tr>
				<th>
					<img src="/{$list.par.logo}" width="60" height="60"/>
					<div class="p_name">{$list.par.name}</div>
				</th>
				<td>
					<php>foreach ($list['sub'] as $subList) {</php>
						<div class="sub_name">{$subList.brand.name}</div>
						<div class="car_models">
							<php>foreach ($subList['categorys'] as $category) {</php>
								<div class="car_model">
									<span class="model_name"><a href="__APP__/Auto/carDetail/id/{$category.id}" target="_blank">{$category.name}</a></span>
<if condition="$category.car_type neq ''"><span class="model_type">[{$category.car_type}]</span></if>
<if condition="$category.status eq 0"><span class="off_sale">[停售]</span></if>
<if condition="$category.status eq 2"><span class="on_sale">[未上市]</span></if>
									<br/>
									<span class="price">
										<if condition="$category.high_price eq 0">
										暂无价格
										<else />
										{$category.low_price}-{$category.high_price}万
										</if>
									</span>
								</div>
							<php>}</php>
						</div>
						<div class="divide_line"></div>
					<php>}</php>
				</td>
			</tr>
		<php>}</php>
	</table>
<php>}</php>
 
</div>	
</div>

<script>
function change(letter){
	$("#begin_width").html(letter);
}
</script>

<include file="Public:footer" />	